package javaSE.LibrarySystem.operation;

import javaSE.LibrarySystem.Book.Book;
import javaSE.LibrarySystem.Book.BookList;

public class DisplayOperation implements IOperation {
    public void work(BookList bookList){
        System.out.println("显示图书！");
        int size = bookList.getUsedSize();
        for (int i = 0; i <size ; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
